package com.book.common.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Description：
 * @Author： leo.xiong
 * @CreateDate： 2019/10/9 14:59
 * @Email： leo.xiong@suyun360.com
 * Version：1.0
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BaseException extends Exception {
    private static final long serialVersionUID = 8453501513349481785L;
    private int status = 200;

    public BaseException() {
        super();
    }

    public BaseException(String message, int status) {
        super(message);
        this.status = status;
    }

    public BaseException(String message) {
        super(message);
    }

    public BaseException(String message, Throwable cause) {
        super(message, cause);
    }

    public BaseException(Throwable cause) {
        super(cause);
    }

    public BaseException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
